package com.bootcamp.mall.model.vo.order;

import com.bootcamp.mall.model.Spec;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @program: mall
 * @description:
 * @author: Keyu Li
 * @create: 2021-11-11 20:01
 **/

@Data
public class ShowOrderVO {
    Integer id;
    BigDecimal amount;
    Integer num;
    Integer goodsId;
    Integer goodsDetailId;
    Integer state;
    String goods;
    List<Spec> spec;
    List<StateVO> states;
    CurrentStateVO curState = new CurrentStateVO();
    CurrentSpecVO curSpec = new CurrentSpecVO();

    public void setGoodsDetailId(Integer id) {
        this.goodsDetailId = id;
        this.curSpec.setId(id);
    }

    public void setState(Integer state){
        this.state = state;
        this.curState.setId(state);
    }
}
